#ifndef __BSP_BOARD_H__
#define __BSP_BOARD_H__

#ifdef __cplusplus
extern "C" {
#endif

#include "at32f435_437.h"
#include "bsp_debug.h"
#include "bsp_delay.h"
#include "bsp_oled.h"
#include "bsp_systick.h"
#include "RTT_DEBUG.h"


typedef unsigned int __be32;





#define PACKED __attribute__((packed))
#define L2B16(Little) (((Little & 0xFF) << 8) | ((Little >> 8) & 0xFF))

#define false    	0
#define true    	1

/* 外部调用函数 */

void hex_to_str(char *hex,  int hex_len, char *str);
unsigned int be32_to_cpu(unsigned int x);

void bsp_board_init(void);


#ifdef __cplusplus
}
#endif

#endif /* __BSP_BOARD_H__ */

